<!DOCTYPE HTML>
<html>
<head>
	<title></title>
	<meta name="csrf-token" content="{{ csrf_token() }}">
	<script src="{{ asset('js/jquery-1.11.1.min.js') }}?v=<?=config('version')?>"></script>

</head>
<body>

<div class="container myContainer" style="width: 370px">
	<div class="text-center" >
		<?=$data->content?>
		<form method="post"> 
		<label id="set">设置分类</label>
		<select name="cat_id">
			@foreach($cats as $cat_id=>$cat)
			<option value="{{$cat_id}}" @if($cat_id==$data->type) selected="" @endif>{{$cat->name}}</option>
			@endforeach
		</select>
		{{ csrf_field() }}
		<input type="hidden" name="id" value="{{$data->id}}">
		<button type="submit">提交</button>
		</form>
	</div>
</div>
<style type="text/css">
img{ width: 100%; height:auto; }
.myContainer{
	display:flex;
    align-items:center; 
    justify-content:center;
}
</style>

</body>
</html>